package com.ecfront.dao;

import java.util.List;

import com.ecfront.pojo.Goods;

public interface GoodsDAO {

	// property constants
	public static final String GTITLE = "name";
	public static final String GIMG_URL = "imgUrl";
	public static final String GINFO = "info";
	public static final String GREST_COUNT = "restCount";
	public static final String GPRICE = "price";
	public static final String GTRADE_PRICE = "tradePrice";
	public static final String GHAVE_INVOICE = "haveInvoice";
	public static final String GIS_GUARANTEE = "isGuarantee";
	public static final String GIS_RECOMMEND = "isRecommend";
	public static final String GHIT = "hits";
	public static final String GIS_SHOW = "isShow";

	public abstract void save(Goods transientInstance);

	public abstract void delete(Goods persistentInstance);

	public abstract Goods findById(java.lang.Integer id);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByGtitle(Object gtitle);

	public abstract List findByGinfo(Object ginfo);

	public abstract List findByGrestCount(Object grestCount);

	public abstract List findByGprice(Object gprice);

	public abstract List findByGtradePrice(Object gtradePrice);

	public abstract List findByGisRecommend(Object gisRecommend);

	public abstract List findByGisShow(Object gisShow);

	public abstract List findAll();

}